package com.superhelper.common.domain;

public enum TakeOutOrderType {
    MeiTuan("mt", "美团"), EleMe("ele", "饿了么"), BaiDu("bd", "百度外卖");
    private String value;
    private String desc;

    public String getValue() {
        return value;
    }

    public String getDesc() {
        return desc;
    }

    private TakeOutOrderType(String value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public static TakeOutOrderType get(String value) {
        if (EleMe.getValue().equals(value)) {
            return EleMe;
        }
        if (MeiTuan.getValue().equals(value)) {
            return MeiTuan;
        }
        return BaiDu;
    }
}
